<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>注册账号</title>
		<!--引入jquery资源-->
		<script src="js/bootstrap-3.3.7-dist/js/jquery-1.12.4.min.js" type="text/javascript" charset="utf-8"></script>
		<!--引入bootstrap核心css-->
		<link rel="stylesheet" type="text/css" href="js/bootstrap-3.3.7-dist/css/bootstrap.min.css" />
		<!--引入bootstrap核心js-->
		<script src="js/bootstrap-3.3.7-dist/js/bootstrap.min.js" type="text/javascript" charset="utf-8"></script>
		
		
	</head>

	<body>
		<form class="form-horizontal" action="${basePath }DeleteAdminServlet" method="post">
			<div class="form-group">
			</div>
			<div class="form-group">
				<label for="txtName" class="col-sm-2 control-label">用户名</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminname" name="adminname" placeholder="请输入用户名">
				</div>
				<label for="txtEmail" class="col-sm-2 control-label">邮箱</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminemail" name="adminemail" placeholder="请输入邮箱">
				</div>
			</div>
			<div class="form-group">
				
				<label for="txtSex" class="col-sm-2 control-label">性别</label>
				<div class="col-sm-3">
					<label class="radio-inline">
  						<input type="radio" name="adminsex" id="adminsex1" value="男"> 男
					</label>
					<label class="radio-inline">
						<input type="radio" name="adminsex" id="adminsex2" value="女"> 女
					</label>
					<label class="radio-inline">
						<input type="radio" name="adminsex" id="adminsex3" value=""> 性别不限
					</label>					
				</div>
				<label for="txtName" class="col-sm-2 control-label">电话</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="admintel" name="admintel" placeholder="请输入电话">
				</div>
			</div>
			<div class="form-group">
				
				<label for="txtPsw" class="col-sm-2 control-label">年龄</label>
				<div class="col-sm-3">
					<input type="text" class="form-control" id="adminage" name="adminage" placeholder="请输入年龄">
					<input type="text" class="form-control" id="adminage2" name="adminage2" placeholder="请输入年龄">
				</div>
				<label for="txtName" class="col-sm-2 control-label">创建日期</label>
				<div class="col-sm-3">
					<input type="date" class="form-control" id="admincreatetime" name="admincreatetime" placeholder="请输入创建时间">
					<input type="date" class="form-control" id="admincreatetime2" name="admincreatetime2" placeholder="请输入创建时间">
				</div>
			</div>
			
			<div class="form-group">
				<div class="col-sm-offset-4 col-sm-1">
					<button type="submit" class="btn btn-default" onclick="viewDelete();">提&nbsp;&nbsp;交</button>
				</div>
				<div class="col-sm-offset-1 col-sm-1">
					<button type="reset" class="btn btn-default">取&nbsp;&nbsp;消</button>
				</div>
			</div>
		</form>
<div class="bs-example" data-example-id="hoverable-table">
    <table class="table table-hover">
      <thead>
        <tr>
          
          <th>序号</th>
          <th>用户名</th>
           <th>性别</th>
          <th>年龄</th>
           <th>电话</th>
            <th>邮箱</th>
             <th>添加时间</th>
        </tr>
      </thead>
      <tbody>
        <!-- 外层循环控制行 -->
	        <c:forEach items="${sessionScope.adminlst }" var="aiblst" varStatus="lst">
		        <tr>
					<th>${lst.index+1 }</th>
						<td>${aiblst.adminname }</td>
						<td>${aiblst.adminsex }</td>
						<td>${aiblst.adminage }</td>
						<td>${aiblst.admintel }</td>
						<td>${aiblst.adminemail }</td>
						<td>${aiblst.admincreatetime }</td>
				</tr>
			</c:forEach>
      </tbody>
    </table>
  </div>
	</body>
<script type="text/javascript">
   function viewDelete(){
	   alert(sessionScope.deleteNum+"条数据删除成功！");  
   }
	
</script>
</html>